package com.css.dzj.dzjap.modules.todolist.service;

import com.css.dzj.dzjap.modules.record.approject.entity.ApRecordEntity;
import com.css.dzj.dzjap.modules.todolist.entity.ApTodoEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 待办事项service
 * @author liyunyue
 */
@Service
public interface ApTodoService {
    QueryResults<ApTodoEntity> getPage(String title, String status, String station,
                                         String createPerson,Pageable pageable, HttpServletRequest request);
    ApTodoEntity findByLinkId(String linkId);
    ApTodoEntity findByIdandType(String id,String typeFlag);
    void update(ApTodoEntity apTodoEntity);

    List<ApTodoEntity> queryTodoByLocation();

    void saveDB(ApTodoEntity apTodoEntity);

}
